package com.myspring.controller;


import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/user")
public class TestController {
    //一个方法就是一个Servlet
    @RequestMapping("/index")
//    @ResponseBody
    public String index() {
        return "index";
    }
}
